Optimal. Leaf size=621 \[ \frac{x \left (c x^2 \left (20 a^2 c f+a b^2 f-24 a b c d+3 b^3 d\right )+8 a^2 b c f+28 a^2 c^2 d-25 a b^2 c d+a b^3 f+3 b^4 d\right )}{8 a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{\sqrt{c} \left (-\frac{-52 a^2 b c f+168 a^2 c^2 d-30 a b^2 c d+a b^3 f+3 b^4 d}{\sqrt{b^2-4 a c}}+20 a^2 c f+a b^2 f-24 a b c d+3 b^3 d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{\sqrt{c} \left (4 a^2 c \left (5 f \sqrt{b^2-4 a c}+42 c d\right )+b^3 \left (3 d \sqrt{b^2-4 a c}+a f\right )-a b^2 \left (30 c d-f \sqrt{b^2-4 a c}\right )-4 a b c \left (6 d \sqrt{b^2-4 a c}+13 a f\right )+3 b^4 d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^{5/2} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{6 c^2 e \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{5/2}}+\frac{x \left (c x^2 (b d-2 a f)-a b f-2 a c d+b^2 d\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{3 c e \left (b+2 c x^2\right )}{2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}-\frac{e \left (b+2 c x^2\right )}{4 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 4.51193, antiderivative size = 621, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.36, Rules used = {1673, 1178, 1166, 205, 12, 1107, 614, 618, 206} \[ \frac{x \left (c x^2 \left (20 a^2 c f+a b^2 f-24 a b c d+3 b^3 d\right )+8 a^2 b c f+28 a^2 c^2 d-25 a b^2 c d+a b^3 f+3 b^4 d\right )}{8 a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{\sqrt{c} \left (-\frac{-52 a^2 b c f+168 a^2 c^2 d-30 a b^2 c d+a b^3 f+3 b^4 d}{\sqrt{b^2-4 a c}}+20 a^2 c f+a b^2 f-24 a b c d+3 b^3 d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{\sqrt{c} \left (4 a^2 c \left (5 f \sqrt{b^2-4 a c}+42 c d\right )+b^3 \left (3 d \sqrt{b^2-4 a c}+a f\right )-a b^2 \left (30 c d-f \sqrt{b^2-4 a c}\right )-4 a b c \left (6 d \sqrt{b^2-4 a c}+13 a f\right )+3 b^4 d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^{5/2} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{6 c^2 e \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{5/2}}+\frac{x \left (c x^2 (b d-2 a f)-a b f-2 a c d+b^2 d\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{3 c e \left (b+2 c x^2\right )}{2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}-\frac{e \left (b+2 c x^2\right )}{4 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1673
Rule 1178
Rule 1166
Rule 205
Rule 12
Rule 1107
Rule 614
Rule 618
Rule 206
Rubi steps
\begin{align*} \int \frac{d+e x+f x^2}{\left (a+b x^2+c x^4\right )^3} \, dx &=\int \frac{e x}{\left (a+b x^2+c x^4\right )^3} \, dx+\int \frac{d+f x^2}{\left (a+b x^2+c x^4\right )^3} \, dx\\ &=\frac{x \left (b^2 d-2 a c d-a b f+c (b d-2 a f) x^2\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}-\frac{\int \frac{-3 b^2 d+14 a c d-a b f-5 c (b d-2 a f) x^2}{\left (a+b x^2+c x^4\right )^2} \, dx}{4 a \left (b^2-4 a c\right )}+e \int \frac{x}{\left (a+b x^2+c x^4\right )^3} \, dx\\ &=\frac{x \left (b^2 d-2 a c d-a b f+c (b d-2 a f) x^2\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{x \left (3 b^4 d-25 a b^2 c d+28 a^2 c^2 d+a b^3 f+8 a^2 b c f+c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f\right ) x^2\right )}{8 a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{\int \frac{3 b^4 d-27 a b^2 c d+84 a^2 c^2 d+a b^3 f-16 a^2 b c f+c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f\right ) x^2}{a+b x^2+c x^4} \, dx}{8 a^2 \left (b^2-4 a c\right )^2}+\frac{1}{2} e \operatorname{Subst}\left (\int \frac{1}{\left (a+b x+c x^2\right )^3} \, dx,x,x^2\right )\\ &=-\frac{e \left (b+2 c x^2\right )}{4 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{x \left (b^2 d-2 a c d-a b f+c (b d-2 a f) x^2\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{x \left (3 b^4 d-25 a b^2 c d+28 a^2 c^2 d+a b^3 f+8 a^2 b c f+c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f\right ) x^2\right )}{8 a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}-\frac{(3 c e) \operatorname{Subst}\left (\int \frac{1}{\left (a+b x+c x^2\right )^2} \, dx,x,x^2\right )}{2 \left (b^2-4 a c\right )}+\frac{\left (c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f-\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\frac{b}{2}+\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx}{16 a^2 \left (b^2-4 a c\right )^2}+\frac{\left (c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f+\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{1}{\frac{b}{2}-\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx}{16 a^2 \left (b^2-4 a c\right )^2}\\ &=-\frac{e \left (b+2 c x^2\right )}{4 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{x \left (b^2 d-2 a c d-a b f+c (b d-2 a f) x^2\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{3 c e \left (b+2 c x^2\right )}{2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{x \left (3 b^4 d-25 a b^2 c d+28 a^2 c^2 d+a b^3 f+8 a^2 b c f+c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f\right ) x^2\right )}{8 a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{\sqrt{c} \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f+\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{c} \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f-\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{b+\sqrt{b^2-4 a c}}}+\frac{\left (3 c^2 e\right ) \operatorname{Subst}\left (\int \frac{1}{a+b x+c x^2} \, dx,x,x^2\right )}{\left (b^2-4 a c\right )^2}\\ &=-\frac{e \left (b+2 c x^2\right )}{4 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{x \left (b^2 d-2 a c d-a b f+c (b d-2 a f) x^2\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{3 c e \left (b+2 c x^2\right )}{2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{x \left (3 b^4 d-25 a b^2 c d+28 a^2 c^2 d+a b^3 f+8 a^2 b c f+c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f\right ) x^2\right )}{8 a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{\sqrt{c} \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f+\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{c} \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f-\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{b+\sqrt{b^2-4 a c}}}-\frac{\left (6 c^2 e\right ) \operatorname{Subst}\left (\int \frac{1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^2\right )}{\left (b^2-4 a c\right )^2}\\ &=-\frac{e \left (b+2 c x^2\right )}{4 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{x \left (b^2 d-2 a c d-a b f+c (b d-2 a f) x^2\right )}{4 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )^2}+\frac{3 c e \left (b+2 c x^2\right )}{2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{x \left (3 b^4 d-25 a b^2 c d+28 a^2 c^2 d+a b^3 f+8 a^2 b c f+c \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f\right ) x^2\right )}{8 a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{\sqrt{c} \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f+\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{c} \left (3 b^3 d-24 a b c d+a b^2 f+20 a^2 c f-\frac{3 b^4 d-30 a b^2 c d+168 a^2 c^2 d+a b^3 f-52 a^2 b c f}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b+\sqrt{b^2-4 a c}}}\right )}{8 \sqrt{2} a^2 \left (b^2-4 a c\right )^2 \sqrt{b+\sqrt{b^2-4 a c}}}-\frac{6 c^2 e \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{5/2}}\\ \end{align*}
Mathematica [A] time = 4.4632, size = 625, normalized size = 1.01 \[ \frac{1}{16} \left (\frac{8 a^2 c \left (b (3 e+2 f x)+c x \left (7 d+6 e x+5 f x^2\right )\right )+2 a b x \left (b^2 f-25 b c d+b c f x^2-24 c^2 d x^2\right )+6 b^3 d x \left (b+c x^2\right )}{a^2 \left (b^2-4 a c\right )^2 \left (a+b x^2+c x^4\right )}+\frac{\sqrt{2} \sqrt{c} \left (4 a^2 c \left (5 f \sqrt{b^2-4 a c}+42 c d\right )+b^3 \left (3 d \sqrt{b^2-4 a c}+a f\right )+a b^2 \left (f \sqrt{b^2-4 a c}-30 c d\right )-4 a b c \left (6 d \sqrt{b^2-4 a c}+13 a f\right )+3 b^4 d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{a^2 \left (b^2-4 a c\right )^{5/2} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{2} \sqrt{c} \left (4 a^2 c \left (5 f \sqrt{b^2-4 a c}-42 c d\right )+b^3 \left (3 d \sqrt{b^2-4 a c}-a f\right )+a b^2 \left (f \sqrt{b^2-4 a c}+30 c d\right )+4 a b c \left (13 a f-6 d \sqrt{b^2-4 a c}\right )-3 b^4 d\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{a^2 \left (b^2-4 a c\right )^{5/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{48 c^2 e \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right )}{\left (b^2-4 a c\right )^{5/2}}-\frac{48 c^2 e \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right )}{\left (b^2-4 a c\right )^{5/2}}+\frac{4 a b (e+f x)+8 a c x (d+x (e+f x))-4 b d x \left (b+c x^2\right )}{a \left (4 a c-b^2\right ) \left (a+b x^2+c x^4\right )^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.28, size = 7858, normalized size = 12.7 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]